<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p v-if="gender === 1">性别:男</p>
        <p v-else>性别:女</p>
        <hr>
        <p v-if="score>=90">成绩评定A:奖励电脑一台</p>
        <p v-else-if="score>=70">成绩评定B:奖励平板一台</p>
        <p v-else-if="score>=60">成绩评定C:奖励零食大礼包</p>
        <p v-else>成绩评定D:惩罚一周不能玩手机</p>
    </div>
        <!-- vue2 -->
        <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.13/vue.js"></script>
        <!-- vue3
        <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->
        <script>
            const app = new Vue({
                //通过el 配置选择器，指定Vue 管理那个div
                el: "#app",
                data:{//通过Data 提供数据
                  gender:2,
                  score:80
                }
            });
        </script>
</body>
</html>